package com.hq.demo12;

public class Main {

    public static void main(String[] args) {
        BaseDiscount vipDiscountBusiness = new VIPDiscountBusiness();
        BaseDiscount  festivalDiscountBusiness = new FestivalDiscountBusiness();

        DiscountDecorator vipDiscountDecorator = new VIPDiscountDecorator(vipDiscountBusiness);
        DiscountDecorator festivalDiscountDecorator = new FestivalDiscountDecorator(festivalDiscountBusiness);

        vipDiscountDecorator.discountForVip();
        festivalDiscountDecorator.discountForFestival();

    }

}
